writeironwrapkeys

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > WriteIronWrapKeys

## WriteIronWrapKeys

The WriteIronWrapKeys is used to force the ClientProtector to write any and all keys it has stored in the currently loaded license file to the IronWrapping system. Generally you will only ever call this function if you are writing your own User Defined License Model. There is never any need to call this function if you are using one of our pre-defined License Models in the IronWrapping system OR are using the simple embedded approach (non-IronWrapped).Syntax

HRESULT WriteIronWrapKeys ( ) ;

###### Remarks

This function may only be called after you have successfully set the IronWrap interface using the function: SetYCoreInterface() AND you have successfully loaded the license file using StartUp().

When called, the ClientProtector immediately uses the YCore interface (AKA: IronWrap interface) to write keys to the system. The keys are extracted from a number of places within the currently loaded license file. The keys will include any keys used for encryption which are stored within the license file. This may include the Host encryption key, any embedded binary or data file encryption keys, and any CodeRivet keys which may be activated.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"